package tree.binary_tree.base;

/**
 * @author yeyangtao created at 17:07 2020/8/24
 */
public class MyTree<T> {
    private T value;
    private MyTree<T> left;
    private MyTree<T> right;

    public MyTree() {
    }

    public MyTree(T value) {
        this.value = value;
    }

    public T getValue() {
        return value;
    }

    public void setValue(T value) {
        this.value = value;
    }

    public MyTree<T> getLeft() {
        return left;
    }

    public void setLeft(MyTree<T> left) {
        this.left = left;
    }

    public MyTree<T> getRight() {
        return right;
    }

    public void setRight(MyTree<T> right) {
        this.right = right;
    }
}
